home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-05 / cu-ip.zip / CU-IP.DOC < prev    next >
Text File  |  1992-07-13  |  3KB  |  63 lines

  1. I have written a small Novell network utility that determines a workstations
  2. Internet (IP) address on the fly.  This utility is to be used with the
  3. Clarkson University modified NCSA Telnet and FTP software (CUTCP/CUTE).
  4.  
  5. The original idea was borrowed from Mark Bramwell's GET-IP, but enhanced
  6. to take advantage of the Clarkson University's modification allowing the use of
  7. environment variables as entries in CONFIG.TEL.
  8.  
  9. Using this utility, our network now maintains one copy of CONFIG.TEL, and
  10. has FTP and TELNET batch files which are executed by the users.
  11.  
  12. In addition, this utility can be used in a multi-server environment so that
  13. you do not receive conflicting IPs as results from using GET-IP.
  14.  
  15. This utility builds the "myip=..." string as can be found in a CONFIG.TEL file,
  16. locks out a semaphore, sets the environment variable specified with the string,
  17. and spawns the specified program.  Upon exit of the program, the semaphore is
  18. released.
  19.  
  20. The format of the command is as follows:
  21.  
  22.    CU-IP baseIP beg end server var prog [args ...]
  23.  
  24. where
  25.    baseIP is the base range of your Internet Address
  26.    beg    is the beginning of a range of valid IP addresses
  27.    end    is the ending of the range of valid IP addresses
  28.    server is the server in which to lock the IP address on
  29.    var    is the environment variable to use, eg. $CUTCP1
  30.    prog   is the program to execute, eg. TN3270 or FTPBIN
  31.    args   are the parameters to the program to execute
  32.  
  33. Given that our CUTCP software (and CUTCP-IP.EXE) is located at
  34.    Z:\APPS\TELNET
  35. and our Novell File Server's name is OZ, we have the following batch files
  36. for TELNET (tn3270) and FTP (ftpbin):
  37.  
  38. ----------------------------- Begin TELNET.BAT ----------------------------
  39. @echo off
  40. cd z:\apps\telnet
  41. z:cu-ip 129.130.75 220 235 oz $CUTCP1 z:tn3270.exe -h z:config.tel %1 %2
  42. cd z:\
  43. ------------------------------- End TELNET.BAT ----------------------------
  44.  
  45. ------------------------------- Begin FTP.BAT -----------------------------
  46. @echo off
  47. cd z:\apps\telnet
  48. z:cu-ip 129.130.75 220 235 oz $CUTCP1 z:ftpbin.exe -h z:config.tel %1 %2
  49. cd z:\
  50. -------------------------------- End FTP.BAT ------------------------------
  51.  
  52. I place no restrictions on the use of this software.  This software may not be
  53. sold in any form and is freely distributable as long as this document 
  54. accompanies the software.
  55.  
  56. If you have suggestions and/or comments, please send them to 
  57.  
  58.         Eric DeVolder
  59.     devolder@matt.ksu.ksu.edu
  60.  
  61. In ending, I can not be responsible for any damages caused by this program,
  62. though it does not read a single file.  Enjoy.
  63.